package com.wofish.goods.domain;


import com.wofish.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品规格值表 wf_b2c_spec_values
 * 
 * @author wofish
 * @date 2019-04-15
 */

@Data
public class SpecValues extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	/** 规格值ID */
	private Long specValueId;
	/** 规格ID */
	private Long specId;
	/** 规格值 */
	private String specValue;
	/** 规格别名 */
	private String alias;
	/** 规格图片 */
	private String specImage;
	/** 排序 */
	private Integer orderNum;


	private String imageId;
	private String imageUrl;

	@Override
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		SpecValues that = (SpecValues) o;

		if (!specValueId.equals(that.specValueId))
			return false;
		return specId.equals(that.specId);

	}

	@Override
	public int hashCode() {
		int result = specValueId.hashCode();
		result = 31 * result + specId.hashCode();
		return result;
	}

}
